﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Level2LetterOnSide : MonoBehaviour
{
    public ButtonDown leftButton;
    public ButtonDown rightButton;
    public GameLevelItem gameLevelItem;

    void Start()
    {
        leftButton.onButtonDown.AddListener(() =>
        {
            if (rightButton.isButtonDown)
            {
                gameLevelItem.TriggerResult(true);
            }
        });

        rightButton.onButtonDown.AddListener(() =>
        {
            if (leftButton.isButtonDown)
            {
                gameLevelItem.TriggerResult(true);
            }
        });

    }


}
